package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.domain.City;
import cn.wolfcode.luowowo.search.mapper.CityMapper;
import cn.wolfcode.luowowo.search.mapper.CityMapper;
import cn.wolfcode.luowowo.search.service.ICityService;
import cn.wolfcode.luowowo.search.service.ICityService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class CityServiceImpl implements ICityService{
    @Autowired
    private CityMapper cityMapper;

    @Override
    public void save(City city) {
        cityMapper.insert(city);
    }

    @Override
    public List<City> selectByIsHot( ) {
        return cityMapper.selectByIsHot();
    }

    @Override
    public List <City> selectByAircodeA( ) {
        return cityMapper.selectByAircodeA( );
    }

    @Override
    public List <City> selectByAircodeF( ) {
        return cityMapper.selectByAircodeF();
    }

    @Override
    public List <City> selectByAircodeK( ) {
        return cityMapper.selectByAircodeK();
    }

    @Override
    public List <City> selectByAircodeQ( ) {
        return cityMapper.selectByAircodeQ();
    }

    @Override
    public List <City> selectByAircodeX( ) {
        return cityMapper.selectByAircodeX();
    }
}
